export default {
    handleClick() {
        const el = this.$refs.gradient;
        var ctx = el.getContext('2d');
        const gradient = ctx.createLinearGradient(0,0,100,0);
        gradient.addColorStop(0,'#00ffff');
        gradient.addColorStop(1,'#ff0000');
        ctx.fillStyle=gradient;
        ctx.fillRect(20,20,170,100);
    },
}
